package com.zhentao.utils;

public enum ApiServiceExceptionEnum implements BaseExceptionEnum{
	RESULT_SUCCES(200,"成功"),
	RESULT_ERROR(400,"请求失败"),
	LOGIN_OK(200,"登录成功"),
	LOGIN_ERROR(400,"登录失败"),
	USER_NOT_NULL(1001,"手机号不能为空"),
	YAN_NOT_NULL(1004,"验证码不能为空"),
	PASSWORD_NOT_NULL(1005,"密码不能为空"),
	YAN_ERROR(1002,"验证码不正确"),
	YONGHU_NOT_NULL(1003,"用户不存在"),
	PASSWORD_ERROR(1003,"密码错误"),
	LOGOUT_OK(200,"登出"),
	SHUJU_NOT_NULL(1006,"数据不能为空"),
	ZHUXIAO_USER(1008,"用户已被注销"),
	BAN_USER(1009,"用户已被封禁"),
	WX_CODE_ERROR(1010,"微信code获取失败"),
	CAN_SHU_YICHANG(1011,"系统参数异常"),
    ;



     ApiServiceExceptionEnum(Integer code , String message) {

    	 this.code=code;
    	 this.message=message;
    }
     private Integer code;

     private String message;

    @Override
	public Integer getCode() {
		// TODO Auto-generated method stub
		return code;
	}

	@Override
	public String getMessage() {
		// TODO Auto-generated method stub
		return message;
	}

}
